<?php

namespace app\shop\model;

class Customer extends \ShopModel
{
    protected $table = 'sh_customer';

    protected $pk = 'customer_id';

    protected $autoWriteTimestamp = true;
    protected $updateTime = false;
    protected $createTime = 'create_at';

    public function user()
    {
        return $this->hasOne('User', 'user_id', 'user_id');
    }
}
